﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MemeberMain.Master" AutoEventWireup="true" CodeBehind="MedForumView.aspx.cs" Inherits="outREACH.MedForumView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
<div id="header-wrapper">
     
		<div id="header">
       
			<div id="menu">
            
				<ul>
					<li><a id="A1" href="~/HomeMem.aspx" runat="server">HOME</a></li>
					<li><a id="A2" href="~/Education/EducationMem.aspx" runat="server">EDUCATION</a></li>
					<li class="current_page_item"><a id="A3" href="~/Medical/MedicalMem.aspx" runat="server">MEDICAL</a></li>
					<li><a id="A4" href="~/Infrastructure/InfrastructureMem.aspx" runat="server">INFRA STRUCTURE</a></li>
					<li><a id="A5" href="~/Donation/DonationMem.aspx" runat="server">DONATION</a></li>
					<li><a id="A6" href="~/ContactUs_Mem.aspx" runat="server">CONTACT US</a></li>
				</ul>
               
			</div>
            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" Height="170px" 
                ImageUrl="~/Images/Untitled-2.png" Width="175px" CausesValidation="False" 
                PostBackUrl="~/HomeMem.aspx" />
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel5" runat="server" Height="1030px" Font-Size="13pt" 
        ForeColor="Black">
        <asp:Label ID="med" runat="server" Font-Bold="True" Font-Italic="True" 
            Font-Size="20pt" Text="MEDICAL - MEDICAL FORUM - VIEW THREAD"></asp:Label>
        <br />
        <br />
        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource3" ShowHeader="False" style="margin-bottom: 0px" 
            Width="600px">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="Label10" runat="server" Font-Bold="True" 
                            Text='<%# Eval("userName") %>'></asp:Label>
                        <br />
                        <asp:Image ID="Image2" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("imagePath") %>' Width="100px" />
                        <br />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <span ID="idControl">GridView2</span> - Column[0]
                    </EditItemTemplate>
                    <FooterTemplate>
                        <table cellpadding="0" cellspacing="0" 
                            style="margin:5px 0px; border:1px solid #A0A0A0;width:100%;height:100%">
                            <tr>
                                <td style="padding: 2px 4px; height: 17px; font-family: Segoe UI; font-style: normal; font-weight: normal; font-size: 9pt; text-decoration: none; background-color: buttonface; color: #102040; background-image: url(mvwres://Microsoft.Web.Design.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a/TemplateHeaderBackground.gif); background-repeat: repeat-x; border-bottom: 1px solid #A0A0A0;">
                                    ItemTemplate
                                </td>
                            </tr>
                            <tr style="">
                                <td style="padding:4px;height:50px;vertical-align:top;">
                                    <asp:Image ID="Image3" runat="server" Height="100px" 
                                        ImageUrl='<%# Eval("imagePath") %>' Width="100px" />
                                    <br />
                                    Username:
                                    <asp:Label ID="Label14" runat="server" Text='<%# Eval("userName") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </FooterTemplate>
                    <ItemStyle Width="100px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="Label11" runat="server" Font-Bold="True" Font-Size="14pt" 
                            Text='<%# Eval("title") %>'></asp:Label>
                        <br />
                        <asp:Label ID="Label13" runat="server" Font-Bold="True" 
                            Text='<%# Eval("dateTime") %>'></asp:Label>
                        <br />
                        <asp:Label ID="Label12" runat="server" Font-Size="13pt" 
                            Text='<%# Eval("post") %>'></asp:Label>
                        <br />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" DataSourceID="ObjectDataSource2" Height="260px" 
            ShowHeader="False" Width="600px">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="Label17" runat="server" Font-Bold="True" 
                            Text='<%# Eval("userName") %>'></asp:Label>
                        <br />
                        <asp:Image ID="Image4" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("imagePath") %>' Width="100px" />
                        <br />
                        Country:
                        <asp:Label ID="Label20" runat="server" Text='<%# Eval("country") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="100px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="Label18" runat="server" Font-Bold="True" Font-Size="14pt" 
                            Text='<%# Eval("title") %>'></asp:Label>
                        <br />
                        <asp:Label ID="Label15" runat="server" Font-Bold="True" 
                            Text='<%# Eval("dateTime") %>'></asp:Label>
                        <br />
                        <asp:Label ID="Label16" runat="server" Font-Size="13pt" 
                            Text='<%# Eval("reply") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <br />
        Reply:<br />
        <asp:TextBox ID="TextBox66" runat="server" Height="180px" TextMode="MultiLine" 
            Width="630px"></asp:TextBox>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="MedReply" runat="server" onclick="Button1_Click" 
            Text="Reply Thread" Font-Size="12pt" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="MCancel" runat="server" 
            PostBackUrl="~/Education/EducationForum.aspx" Text="Cancel" 
            Font-Size="12pt" CausesValidation="False" />
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetMedReply" TypeName="outREACH.App_Code.MedForumReply">
            <SelectParameters>
                <asp:QueryStringParameter Name="MF_ID" QueryStringField="mid" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="displayMedForum" 
            TypeName="outREACH.App_Code.MedForum">
            <SelectParameters>
                <asp:QueryStringParameter Name="MedForumID" QueryStringField="mid" 
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <br />
        <br />
    </asp:Panel>
</asp:Content>
